import request from "@/utils/request";

export default {
    // 获取评论列表
    getPageList(page, limit, courseId) {
        return request({
            url: `/serviceedu/comment/${page}/${limit}`,
            method: "get",
            params: { courseId }
        });
    },
    // 添加评论
    addComment(comment) {
        return request({
            url: `/serviceedu/comment/auth/save`,
            method: "post",
            data: comment
        });
    }
};